﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Media;
using UBCon.Core.Enums;

namespace UBCon.Core.Utilities
{
    public class ApplicationPerfomanceHelper
    {

        #region Private fields

        private TierLevel _tierLevel = TierLevel.Level1;

        #endregion
        
        public ApplicationPerfomanceHelper() 
        {
            int level = (RenderCapability.Tier >> 16);
            
            switch (level) 
            {
                case 1:

                    _tierLevel = TierLevel.Level2;

                    break;
                case 2:

                    _tierLevel = TierLevel.Level3;

                    break;

                default:

                    _tierLevel = TierLevel.Level1;

                    break;
            }
        }

        /// <summary>
        /// Gets a boolean value which indicates whether animations can be enabled.
        /// </summary>
        public bool CanAnimate 
        {
            get 
            {
                //return false;
                return _tierLevel == TierLevel.Level3;
            }
        }
    }
}
